<?php

use yii\bootstrap\ActiveForm;
use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\Admin */

$this->title = '密码修改';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="nav-tabs-custom">
    <div class="box">
        <div class="box-body">

            <?php $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal'],
                'fieldConfig' => [
                    'template' => "{label}\n<div class=\"col-lg-8\">{input}</div>\n<div class=\"col-lg-2\">{error}</div>",
                    'labelOptions' => ['class' => 'col-lg-1 control-label'],
                ],
            ]); ?>

            <?= $form->field($model, 'oldPassword')->textInput(['maxlength' => true, 'type' => 'password']) ?>

            <?= $form->field($model, 'newPassword')->textInput(['maxlength' => true, 'type' => 'password']) ?>

            <?= $form->field($model, 'verifyPassword')->textInput(['maxlength' => true, 'type' => 'password']) ?>




            <?= Html::submitButton(Html::tag('span', '', ['class' => 'glyphicon glyphicon-edit']) . ' ' . Yii::t('app', '确认修改') , ['class' =>  'btn btn-success']) ?>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>